<?
$smarty->registerPlugin("function","php", "loadphp");

function loadphp($params, $smarty)
{
		$file=$params["file"];
		$e=explode("?",$file);
		$file=$e[0];
		$p=explode("&",$e[1]);
		if(count($p>0))
			foreach($p as $string)
			{
				$e=explode("=",$string);
				$data[$e[0]]=$e[1];
			}
		$_GET=array_merge($_GET,$data);
		@include($file);
}
/*function loadphp($params, $content, $template, &$repeat)
{
    eval($content);
}*/
?>